from django.conf.urls import url
from apps.users import views

urlpatterns = [
    # 注册
    url(r'^register$', views.RegisterView.as_view(), name='register'),
    # 邮件激活
    url(r'^active/(?P<token>.+)$', views.ActiveView.as_view(), name='active'),
    # 登陆
    url(r'^login$', views.LoginView.as_view(), name='login'),
    # 登出
    url(r'^logout$', views.LogoutView.as_view(), name='logout'),
    # 个人中心-地址
    url(r'^address$', views.AddressView.as_view(), name='address'),
    # 个人中心-信息
    url(r'^info$', views.UserInfoView.as_view(), name='info')

]